﻿//-----------------------------------------------------------------------
// <summary>
//  A module in Prism is a logical unit in your application.
// </summary>
// <copyright file="INewsFeedService.cs" company="DSSoftLogic">
//     Copyright@ DSSoftLogic 2011, Non-Commercial. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Property.Silverlight.Model.Services
{
    using System;
    using System.Collections.Generic;

    /// <summary>
    /// This NewsArticle is testing the StyleCop rules and how to use them.
    /// </summary>
    public interface INewsFeedService
    {
        /// <summary>
        /// Updated event will be exposed.
        /// </summary>
        event EventHandler<NewsFeedEventArgs> Updated;

        /// <summary>
        /// The get news.
        /// </summary>
        /// <param name="tickerSymbol">
        /// The ticker symbol.
        /// </param>
        /// <returns>
        /// The <see cref="IList"/>.
        /// </returns>
        IList<NewsArticle> GetNews(string tickerSymbol);

        /// <summary>
        /// The has news.
        /// </summary>
        /// <param name="tickerSymbol">
        /// The ticker symbol.
        /// </param>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        bool HasNews(string tickerSymbol);
    }
}
